package com.ten.common.core.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author ：杨（1964958771@qq.com）
 * @date ：Created in 2022/12/9 14:38
 * @description：
 * @modified By：
 * @version:
 */
@Data
@TableName("tb_bottom_article")
public class TbBottomArticle {
    @TableId
    private  String id;
    private String name;
    private int isDisable;
    private int isDeleted;
    private String parentId;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
    @TableField(exist = false) //表示该属性没有在表中存在对应的列
    private List<TbBottomArticle> children;
}
